/**
 * 
 */
package de.gee.erep.client.calls.rpc.callbacks;

import java.util.ArrayList;

import com.google.gwt.user.client.rpc.AsyncCallback;

import de.gee.erep.shared.entities.citizen.CitizenDetail;
import de.gee.erep.shared.rpctypes.responses.impls.GetCitizenDetailsResponse;

/**
 * @author Matthew Gee
 * created: 10.05.2011
 */
public abstract class GotCitizenDetails implements
		AsyncCallback<GetCitizenDetailsResponse> {

	/* (non-Javadoc)
	 * @see com.google.gwt.user.client.rpc.AsyncCallback#onFailure(java.lang.Throwable)
	 */
	@Override
	public void onFailure(final Throwable caught) {
	}

	/* (non-Javadoc)
	 * @see com.google.gwt.user.client.rpc.AsyncCallback#onSuccess(java.lang.Object)
	 */
	@Override
	public final void onSuccess(final GetCitizenDetailsResponse result) {
		got(result.getDetails());
	}
	/**
	 * 
	 * @param details d
	 */
	public abstract void got(final ArrayList<CitizenDetail> details);
}
